function processKeyDown(event) {
   var keyCode;
   if(window.event) {
      keyCode = event.keyCode;
   } else if(event.which) {
      keyCode = event.which;
   } else {
      alert("Unknown event type.");
      return ;
   }
   
   if (!keyStatus) {return;}

   switch(keyCode) {
      case VK_0 :
      case VK_1 :
      case VK_2 :
      case VK_3 :
      case VK_4 :
      case VK_5 :
      case VK_6 :
      case VK_7 :
      case VK_8 :
      case VK_9 :  
         break;
      
      case VK_UP :
         if (mainStatus) {
            if (currentFocus == 'hilight_play') {menu_hover('menu_home');} else if (currentFocus.substring(0, 15) == 'main_item_list_') {hilight_play_hover();}
         } else {
            if (currentFocus.substring(0, 18) == 'submain_item_list_') {
               var point_id = parseInt(currentFocus.substring(18));
               if (point_id <= 5) {
                  if (point_id == 1) {menu_hover('menu_home');} else if (point_id == 2) {menu_hover('menu_mv');} else if (point_id == 3) {menu_hover('menu_interview');} else if (point_id == 4) {menu_hover('menu_concert');} else if (point_id == 5) {menu_hover('menu_behind');}
               } else if (point_id >= 6) {
                  point_id = point_id - 5;
                  submain_item_hover('submain_item_list_' + point_id);
               }
            }
         }
         break;
      case VK_PAGE_UP :
         if ($('#main_prev').is(':visible')) {jQuery.globalEval($('#main_prev').attr('onclick'));} else if ($('#submain_prev').is(':visible')) {jQuery.globalEval($('#submain_prev').attr('onclick'));}
         break;
         
      case VK_DOWN :
         if (mainStatus) {
            if (currentFocus == 'menu_home' || currentFocus == 'menu_mv' || currentFocus == 'menu_interview' || currentFocus == 'menu_concert' || currentFocus == 'menu_behind') {hilight_play_hover();} else if (currentFocus == 'hilight_play') {
               var current_point = parseInt($('.container .content .main-item .item-lists').css('margin-left'));
               if (current_point == 0) {main_item_hover('main_item_list_1');} else if (current_point == -1165) {main_item_hover('main_item_list_6');} else if (current_point == -2330) {main_item_hover('main_item_list_11');} else if (current_point == -3495) {main_item_hover('main_item_list_16');}
            }
         } else {
            if (currentFocus == 'menu_home') {submain_item_hover('submain_item_list_1');} else if (currentFocus == 'menu_mv') {submain_item_hover('submain_item_list_2');} else if (currentFocus == 'menu_interview') {submain_item_hover('submain_item_list_3');} else if (currentFocus == 'menu_concert') {submain_item_hover('submain_item_list_4');} else if (currentFocus == 'menu_behind') {submain_item_hover('submain_item_list_5');} else if (currentFocus.substring(0, 18) == 'submain_item_list_') {
               var point_id = parseInt(currentFocus.substring(18));
               if (point_id <= 5) {
                  point_id = point_id + 5;
                  submain_item_hover('submain_item_list_' + point_id);
               }
            }
         }
         break;
         
      case VK_PAGE_DOWN :
         if ($('#main_next').is(':visible')) {jQuery.globalEval($('#main_next').attr('onclick'));} else if ($('#submain_next').is(':visible')) {jQuery.globalEval($('#submain_next').attr('onclick'));}
         break;
         
      case VK_LEFT :
         if (currentFocus == 'menu_home') {menu_hover('menu_behind');} else if (currentFocus == 'menu_mv') {menu_hover('menu_home');} else if (currentFocus == 'menu_interview') {menu_hover('menu_mv');} else if (currentFocus == 'menu_concert') {menu_hover('menu_interview');} else if (currentFocus == 'menu_behind') {menu_hover('menu_concert');}
         if (mainStatus) {
            if (currentFocus == 'hilight_play') {menu_hover('menu_home');} else if (currentFocus.substring(0, 15) == 'main_item_list_') {
               var point_id = parseInt(currentFocus.substring(15)) - 1;
               if (point_id < 1) {hilight_play_hover();} else {
                  main_item_hover('main_item_list_' + point_id);
                  if (point_id == 5 || point_id == 10 || point_id == 15) {slide_main('prev');}
               }
            }
         } else {
            if (currentFocus.substring(0, 18) == 'submain_item_list_') {
               var point_id = parseInt(currentFocus.substring(18)) - 1;
               if (point_id < 1) {
                  if ($('#submain_prev').is(':visible')) {
                     submainPointId = 10;
                     jQuery.globalEval($('#submain_prev').attr('onclick'));
                     break;
                  } else {
                     point_id = 1;
                     submainPointId = point_id;
                  }
               }
               submain_item_hover('submain_item_list_' + point_id);
            }
         }
         break;
         
      case VK_RIGHT :
         if (currentFocus == 'menu_home') {menu_hover('menu_mv');} else if (currentFocus == 'menu_mv') {menu_hover('menu_interview');} else if (currentFocus == 'menu_interview') {menu_hover('menu_concert');} else if (currentFocus == 'menu_concert') {menu_hover('menu_behind');} else if (currentFocus == 'menu_behind') {menu_hover('menu_home');}
         if (mainStatus) {
            if (currentFocus == 'hilight_play') {
               var current_point = parseInt($('.container .content .main-item .item-lists').css('margin-left'));
               if (current_point == 0) {main_item_hover('main_item_list_1');} else if (current_point == -1165) {main_item_hover('main_item_list_6');} else if (current_point == -2330) {main_item_hover('main_item_list_11');} else if (current_point == -3495) {main_item_hover('main_item_list_16');}
            } else if (currentFocus.substring(0, 15) == 'main_item_list_') {
               var point_id = parseInt(currentFocus.substring(15)) + 1;
               if (point_id >= 20) {
                  point_id = 20;
               }
               main_item_hover('main_item_list_' + point_id);
               if (point_id == 6 || point_id == 11 || point_id == 16) {slide_main('next');}
            }
         } else {
            if (currentFocus.substring(0, 18) == 'submain_item_list_') {
               var point_id = parseInt(currentFocus.substring(18)) + 1;
               if (point_id > 10) {
                  if ($('#submain_next').is(':visible')) {
                     submainPointId = 1;
                     jQuery.globalEval($('#submain_next').attr('onclick'));
                     break;
                  } else {
                     point_id = 10;
                     submainPointId = point_id;
                  }
               }
               submain_item_hover('submain_item_list_' + point_id);
            }
         }
         break;
         
      case VK_ENTER :
         if (currentFocus == 'menu_home') {menu_select('menu_home');} else if (currentFocus == 'menu_mv') {
            menu_select('menu_mv', 1);
         } else if (currentFocus == 'menu_interview') {
            menu_select('menu_interview', 6);
         } else if (currentFocus == 'menu_concert') {
            menu_select('menu_concert', 4);
         } else if (currentFocus == 'menu_behind') {
            menu_select('menu_behind', 3);
         } else if (currentFocus == 'hilight_play') {
            window.location.href = $('#hilight_play a').attr('href');
         } else if (currentFocus.substring(0, 15) == 'main_item_list_') {
            window.location.href = $('#'+currentFocus).parent().attr('href');
         } else if (currentFocus.substring(0, 18) == 'submain_item_list_') {
            window.location.href = $('#'+currentFocus).parent().attr('href');            
         }
         break;
         
      case VK_BACK :
         window.NetCastReturn(keyCode);
         break;
         
      case VK_RED :
      case VK_GREEN :
      case VK_YELLOW :
      case VK_BLUE :
      case VK_PLAY :
      case VK_PAUSE :
      case VK_STOP :
      case VK_REWIND :
      case VK_FAST_FWD :
      case VK_INFO :
         break;
      default :
         break;
   }
}